<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-storage-edit" th:object="${tbCarStorage}">
            <input name="storageId" th:field="*{storageId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="storageCph" th:field="*{storageCph}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">VIN码：</label>
                <div class="col-sm-8">
                    <input name="vinCode" th:field="*{vinCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车辆公告型号：</label>
                <div class="col-sm-8">
                    <input name="carModel" th:field="*{carModel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">配置名称：</label>
                <div class="col-sm-8">
                    <input name="carConfig" th:field="*{carConfig}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车辆种类：</label>
                <div class="col-sm-8">
                    <input name="carKind" th:field="*{carKind}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电池包编号：</label>
                <div class="col-sm-8">
                    <input name="batteryPackage" th:field="*{batteryPackage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机编号：</label>
                <div class="col-sm-8">
                    <input name="powerCode" th:field="*{powerCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产批次号：</label>
                <div class="col-sm-8">
                    <input name="batchNumber" th:field="*{batchNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">下线质检状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="downlineQualityStatus" value="">
                        <label th:for="downlineQualityStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车辆合格证编号：</label>
                <div class="col-sm-8">
                    <input name="carQualifiedNumber" th:field="*{carQualifiedNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">整车保质期：</label>
                <div class="col-sm-8">
                    <input name="carExpirationDate" th:field="*{carExpirationDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">零件id：</label>
                <div class="col-sm-8">
                    <input name="modelId" th:field="*{modelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">销售表外键：</label>
                <div class="col-sm-8">
                    <input name="sellId" th:field="*{sellId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">运营表外键：</label>
                <div class="col-sm-8">
                    <input name="operatingId" th:field="*{operatingId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">报废表外键：</label>
                <div class="col-sm-8">
                    <input name="scropId" th:field="*{scropId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/storage";
        $("#form-storage-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-storage-edit').serialize());
            }
        }
    </script>
</body>
</html>
